'''
pytest 中共享fixture 模块
'''
import pytest
import requests

@pytest.fixture
def token():
    data = {
        "app_key": "74F287834A1EC175B7AD5A537202E45C",
        "username": "我磊哥",
        "password": "e10adc3949ba59abbe56e057f20f883e"
    }
    r = requests.post(url="http://hn216.api.yesapi.cn/api/App/User/Login", data=data)
    r = r.json()
    return r.get('data').get('token')

